<template>
  <div class="b">
      <h2 class="b1">周末去哪儿</h2>
    <div class="b2" v-for="item in weekendList" :key="item.id">
      <img :src="item.imgUrl" alt="">
      <div class="b3">
        <p class="b4">{{item.title}}</p>
        <p class="b5">{{item.descript}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekendList',
  props: {
    weekendList: Array
  }
}
</script>

<style lang="stylus" scoped>
.b
  color: #212121;
  line-height: 1;
.b1
  height: .8rem;
  padding-left: .26rem;
  line-height: .8rem;
  color: #212121;
.b2
  width 100%
.b2 img
 width 100%
.b3
  padding: .14rem .2rem .2rem .2rem;
.b4
  overflow: hidden;
  padding-right: 1.4rem;
  color: #212121;
  font-size: .28rem;
  line-height: .48rem;
  white-space: nowrap;
  text-overflow: ellipsis;
.b5
  overflow: hidden;
  padding-right: 1.4rem;
  color: #616161;
  font-size: .24rem;
  line-height: .42rem;
  white-space: nowrap;
  text-overflow: ellipsis;
</style>
